<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {
    
	public function __construct(){

		parent::__construct();

		$module = MODULE_NAME;
    	$controller = CONTROLLER_NAME;
    	$action = ACTION_NAME;
		
		$this->assign(array(
			'module'	 => $module,
			'controller' =>	$controller,
			'action' 	 => $action
		));

		$this -> assign('username',session('username'));
	}

	
    
}